<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Slider类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_slider.html">Slider</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_slider-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Slider类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.Slider 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_slider.png" usemap="#awtk.Slider_map" alt=""/>
  <map id="awtk.Slider_map" name="awtk.Slider_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a98bd5e78997fbb4f5ac089dedbfc8276"><td class="memItemLeft" align="right" valign="top"><a id="a98bd5e78997fbb4f5ac089dedbfc8276"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Slider</b> (long nativeObj)</td></tr>
<tr class="separator:a98bd5e78997fbb4f5ac089dedbfc8276"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17d7aff7f2b8f7b854d031e0e3be82ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a17d7aff7f2b8f7b854d031e0e3be82ec">setValue</a> (double value)</td></tr>
<tr class="separator:a17d7aff7f2b8f7b854d031e0e3be82ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b9234b192e61a68f56029374c99d14f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a9b9234b192e61a68f56029374c99d14f">setMin</a> (double min)</td></tr>
<tr class="separator:a9b9234b192e61a68f56029374c99d14f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3754f6e762fe8c1835c8cfddab4557a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a3754f6e762fe8c1835c8cfddab4557a3">setMax</a> (double max)</td></tr>
<tr class="separator:a3754f6e762fe8c1835c8cfddab4557a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a583258366417386af158fd7a698ca681"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a583258366417386af158fd7a698ca681">setStep</a> (double step)</td></tr>
<tr class="separator:a583258366417386af158fd7a698ca681"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe8313c85f665f81df06bb17e89f2c12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#abe8313c85f665f81df06bb17e89f2c12">setBarSize</a> (int bar_size)</td></tr>
<tr class="separator:abe8313c85f665f81df06bb17e89f2c12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adabf18151ba7bb3be8b0653f1aa54b4b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#adabf18151ba7bb3be8b0653f1aa54b4b">setVertical</a> (boolean vertical)</td></tr>
<tr class="separator:adabf18151ba7bb3be8b0653f1aa54b4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4be775e0ba929ca23058531b9e5afa5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#af4be775e0ba929ca23058531b9e5afa5">getMin</a> ()</td></tr>
<tr class="separator:af4be775e0ba929ca23058531b9e5afa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bdc05b7b72c3dbb4f2aa1b3b8e7a904"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a5bdc05b7b72c3dbb4f2aa1b3b8e7a904">getMax</a> ()</td></tr>
<tr class="separator:a5bdc05b7b72c3dbb4f2aa1b3b8e7a904"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37edfd34a2e278935ce9e93c3790c4b8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a37edfd34a2e278935ce9e93c3790c4b8">getStep</a> ()</td></tr>
<tr class="separator:a37edfd34a2e278935ce9e93c3790c4b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3240a1dc7cf655ad8211a97d8110a07"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#ad3240a1dc7cf655ad8211a97d8110a07">getVertical</a> ()</td></tr>
<tr class="separator:ad3240a1dc7cf655ad8211a97d8110a07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed7f279c67617234d11e4ab668a01cbf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#aed7f279c67617234d11e4ab668a01cbf">getBarSize</a> ()</td></tr>
<tr class="separator:aed7f279c67617234d11e4ab668a01cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a4c70a8e0582938dc92ff8470230c31"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a9a4c70a8e0582938dc92ff8470230c31">getDraggerSize</a> ()</td></tr>
<tr class="separator:a9a4c70a8e0582938dc92ff8470230c31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283a2ad2391b740a3acdf2270963e725"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a283a2ad2391b740a3acdf2270963e725">getDraggerAdaptToIcon</a> ()</td></tr>
<tr class="separator:a283a2ad2391b740a3acdf2270963e725"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af664a4b8fe9b6481303481abab2ad030"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#af664a4b8fe9b6481303481abab2ad030">getSlideWithBar</a> ()</td></tr>
<tr class="separator:af664a4b8fe9b6481303481abab2ad030"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a210a37621e558138fafbadb92ca29822"><td class="memItemLeft" align="right" valign="top"><a id="a210a37621e558138fafbadb92ca29822"></a>
static <a class="el" href="classawtk_1_1_slider.html">Slider</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a210a37621e558138fafbadb92ca29822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d421648a1988cf89eff3c1a5ba88d2f"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#a5d421648a1988cf89eff3c1a5ba88d2f">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a5d421648a1988cf89eff3c1a5ba88d2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af49d7480ccb1ba0091da58b9e5b471a9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_slider.html">Slider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slider.html#af49d7480ccb1ba0091da58b9e5b471a9">cast</a> (Widget widget)</td></tr>
<tr class="separator:af49d7480ccb1ba0091da58b9e5b471a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ab24cf64803a58acde82943bd3d64dc10"><td class="memItemLeft" align="right" valign="top"><a id="ab24cf64803a58acde82943bd3d64dc10"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ab24cf64803a58acde82943bd3d64dc10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滑块控件。</p>
<p>slider_t是widget的子类控件，widget_t的函数均适用于slider_t控件。</p>
<p>在xml中使用"slider"标签创建滑块控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">slider</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;10&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">slider</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;20&quot;</span> /&gt;</div><div class="line">&lt;<span class="keywordtype">slider</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;90&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">min</span>=<span class="stringliteral">&quot;5&quot;</span> <span class="keyword">max</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">step</span>=<span class="stringliteral">&quot;5&quot;</span>/&gt;</div></div><!-- fragment --><p>更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/basic.xml">basic</a></p>
<p>在c代码中使用函数slider_create创建滑块控件。如：</p>
<p>完整示例请参考： <a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/slider.c">slider demo</a></p>
<p>可用通过style来设置控件的显示风格，如图片和颜色等等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">bg_image</span>=<span class="stringliteral">&quot;slider_bg&quot;</span> <span class="keyword">fg_image</span>=<span class="stringliteral">&quot;slider_fg&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">pressed</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag_p&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">over</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag_o&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div></div><!-- fragment --><p>更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L179">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="af49d7480ccb1ba0091da58b9e5b471a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af49d7480ccb1ba0091da58b9e5b471a9">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_slider.html">Slider</a> awtk.Slider.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为slider对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>slider对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>slider对象。 </dd></dl>

</div>
</div>
<a id="a5d421648a1988cf89eff3c1a5ba88d2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d421648a1988cf89eff3c1a5ba88d2f">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.Slider.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slider对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aed7f279c67617234d11e4ab668a01cbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed7f279c67617234d11e4ab668a01cbf">&#9670;&nbsp;</a></span>getBarSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Slider.getBarSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>轴的宽度或高度（单位：像素），为0表示为控件的宽度或高度的一半，缺省为0。 </p>

</div>
</div>
<a id="a283a2ad2391b740a3acdf2270963e725"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a283a2ad2391b740a3acdf2270963e725">&#9670;&nbsp;</a></span>getDraggerAdaptToIcon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Slider.getDraggerAdaptToIcon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滑块的宽度或高度是否与icon适应，缺省为true。 </p>

</div>
</div>
<a id="a9a4c70a8e0582938dc92ff8470230c31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a4c70a8e0582938dc92ff8470230c31">&#9670;&nbsp;</a></span>getDraggerSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Slider.getDraggerSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滑块的宽度或高度（单位：像素），缺省为10。 </p>

</div>
</div>
<a id="a5bdc05b7b72c3dbb4f2aa1b3b8e7a904"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bdc05b7b72c3dbb4f2aa1b3b8e7a904">&#9670;&nbsp;</a></span>getMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Slider.getMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大值。 </p>

</div>
</div>
<a id="af4be775e0ba929ca23058531b9e5afa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4be775e0ba929ca23058531b9e5afa5">&#9670;&nbsp;</a></span>getMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Slider.getMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最小值。 </p>

</div>
</div>
<a id="af664a4b8fe9b6481303481abab2ad030"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af664a4b8fe9b6481303481abab2ad030">&#9670;&nbsp;</a></span>getSlideWithBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Slider.getSlideWithBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否允许在轴上滑动来改变滑块位置，缺省为FALSE。 </p>

</div>
</div>
<a id="a37edfd34a2e278935ce9e93c3790c4b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37edfd34a2e278935ce9e93c3790c4b8">&#9670;&nbsp;</a></span>getStep()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Slider.getStep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>拖动的最小单位。 </p>

</div>
</div>
<a id="ad3240a1dc7cf655ad8211a97d8110a07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3240a1dc7cf655ad8211a97d8110a07">&#9670;&nbsp;</a></span>getVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Slider.getVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滑块的是否为垂直方向。 </p>

</div>
</div>
<a id="abe8313c85f665f81df06bb17e89f2c12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe8313c85f665f81df06bb17e89f2c12">&#9670;&nbsp;</a></span>setBarSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Slider.setBarSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bar_size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置bar的宽度或高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bar_size</td><td>bar的宽度或高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3754f6e762fe8c1835c8cfddab4557a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3754f6e762fe8c1835c8cfddab4557a3">&#9670;&nbsp;</a></span>setMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Slider.setMax </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9b9234b192e61a68f56029374c99d14f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b9234b192e61a68f56029374c99d14f">&#9670;&nbsp;</a></span>setMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Slider.setMin </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的最小值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a583258366417386af158fd7a698ca681"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a583258366417386af158fd7a698ca681">&#9670;&nbsp;</a></span>setStep()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Slider.setStep </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>step</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的拖动的最小单位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">step</td><td>拖动的最小单位。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a17d7aff7f2b8f7b854d031e0e3be82ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17d7aff7f2b8f7b854d031e0e3be82ec">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Slider.setValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="adabf18151ba7bb3be8b0653f1aa54b4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adabf18151ba7bb3be8b0653f1aa54b4b">&#9670;&nbsp;</a></span>setVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Slider.setVertical </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的方向。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>是否为垂直方向。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Slider.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
